package org.quarenden.demo.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Sequence {
    @Id
    private String name;

    @Column(name="nextval")
    private Integer nextVal;

    public void setName(String name) {
        this.name = name;
    }

    public void setNextVal(Integer nextVal) {
        this.nextVal = nextVal;
    }

    public String getName() {
        return name;
    }

    public Integer getNextVal() {
        return nextVal;
    }
}
